package extras.src.org.eclipse.persistence.jpa.example.inventory.tools;

import java.util.HashMap;
import java.util.Map;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class DDLGenerator {
    public DDLGenerator() {
    }
    public static void main(String args[]){
	
	System.out.println("Test DDLGenerator");

       	Map properties = new HashMap();
        properties.put("eclipselink.ddl-generation", "drop-and-create-tables");
 	EntityManagerFactory emf = Persistence.createEntityManagerFactory("pu1", properties);
       	emf.createEntityManager().close();
        emf.close(); 
    }
}
